﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AmieLib.Models
{
   public partial class ToDoItem
    {
       public static List<ToDoItem> FromList(int listID)
       {
           return Fetch("WHERE ToDoID = @0", listID);
       }

       public static List<ToDoItem> FromListWithReminder(int listID)
       {
           return Fetch("WHERE ToDoID = @0 DueDate < GetDate() AND EmailAddress is not null", listID);
       }
    }
}
